//
// Created by jinxd on 19-2-15.
//

#include <ottracer/base64/base64.h>

#define CATCH_CONFIG_MAIN
#include <ottracer/catch2/catch.hpp>

using namespace ottracer;

TEST_CASE("base64_test"){
	const std::string input = "test";
	std::string temp = Base64::encode(input.c_str(), input.length());
	CHECK(input == Base64::decode(temp.c_str(), temp.length()));
}